package com.example.personalizededucationsystem.dto.request;

import com.example.personalizededucationsystem.model.Class;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class StudentClassInfoDTO {
    private Long classId;
    private String className;
    private String subject;
    private String teacherName;

    public StudentClassInfoDTO(Class classes) {
        this.classId = classes.getClassId();
        this.className = classes.getClassName();
        this.subject = classes.getSubject();
        this.teacherName = classes.getTeacher().getNickname();
    }
}